﻿/* Copyright 2008-10 Jarrett Vance
* see http://www.codeplex.com/blogsvc/license */
namespace AtomSite.WebCore
{
  using System.Web.Mvc;
  using AtomSite.Domain;
  public partial class AdminController : BaseController
  {
    [ScopeAuthorize(AnyScope = true)]
    [AcceptVerbs(HttpVerbs.Get)]
    public ViewResult Users(int? page, int? pageSize)
    {
      AdminUsersModel m = new AdminUsersModel();
      int total; //TODO: paging
      m.Users = UserRepository.GetUsers(0, int.MaxValue, out total).ToPagedList(0, int.MaxValue, total);
      return View("AdminUsers", "Admin", m);
    }
  }
}
